package com.jn.exam.question.mapper;

import com.jn.exam.question.entity.PersonalQuestion;
import com.jn.exam.question.entity.PersonalQuestionStore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jn.exam.question.entity.vo.QuestionWrapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 江南大学1033190417
 * @since 2022-01-18
 */
public interface PersonalQuestionStoreMapper extends BaseMapper<PersonalQuestionStore> {

    boolean deleteRelationship(String personalQuestionStoreId, String teacherId);

    List<String> selectPersonalQuestionIds(String personalQuestionStoreId, String teacherId);

    List<Map<String, Integer>> getPersonalQuestionStoreTypeNumber(String personalQuestionStoreId);

    List<PersonalQuestion> pageSelect(QuestionWrapper questionWrapper);

    Integer pageTotal(QuestionWrapper questionWrapper);

    boolean removeByPersonalQuestionStoreId(String personalQuestionStoreId);
}
